Holds all information required for an image, with no ownership over the data. More...
Public Member Functions | |
ImageView ()=delete | |
ImageView (const Image &image) | |
ImageView (const nkMemory::BufferView< unsigned char > &dataView) | |
ImageView (const nkMemory::BufferView< unsigned char > &dataView, unsigned int width, unsigned int height, PIXEL_FORMAT format) | |
ImageView (const nkMemory::BufferView< unsigned char > dataView, unsigned int width, unsigned int height, unsigned int depth, PIXEL_FORMAT format, unsigned int pixelByteSize, unsigned int rowByteSize) | |
ImageView (const ImageView &other) | |
ImageView (ImageView &&other) | |
~ImageView () | |
virtual unsigned char * | getDataPtr () const override |
ImageView & | operator= (const ImageView &other) |
ImageView & | operator= (ImageView &&other) |
![]() | |
ImageBase () | |
ImageBase (unsigned int width, unsigned int height, PIXEL_FORMAT format) | |
ImageBase (unsigned int width, unsigned int height, unsigned int depth, PIXEL_FORMAT format, unsigned int pixelByteSize, unsigned int rowByteSize) | |
ImageBase (const ImageBase &other) | |
ImageBase (ImageBase &&other) | |
virtual | ~ImageBase () |
unsigned int | getWidth () const |
unsigned int | getHeight () const |
unsigned int | getDepth () const |
PIXEL_FORMAT | getFormat () const |
unsigned int | getPixelByteSize () const |
unsigned int | getRowByteSize () const |
unsigned int | getSliceByteSize () const |
void | setWidth (unsigned int value) |
void | setHeight (unsigned int value) |
void | setDepth (unsigned int value) |
void | setFormat (PIXEL_FORMAT value) |
void | setPixelByteSize (unsigned int value) |
void | setRowByteSize (unsigned int value) |
void | setSliceByteSize (unsigned int value) |
nkMaths::Vector | getPixel (unsigned int x, unsigned int y, unsigned int z=1) |
ImageBase & | operator= (const ImageBase &other) |
ImageBase & | operator= (ImageBase &&other) |
Holds all information required for an image, with no ownership over the data.
See ImageBase for more information.
|
delete |
Default constructor.
nkImages::ImageView::ImageView | ( | const Image & | image | ) |
View over image constructor.
image | The image to create a view over. |
nkImages::ImageView::ImageView | ( | const nkMemory::BufferView< unsigned char > & | dataView | ) |
Data view constructor.
dataView | The view which data should be part of the image. |
nkImages::ImageView::ImageView | ( | const nkMemory::BufferView< unsigned char > & | dataView, |
unsigned int | width, | ||
unsigned int | height, | ||
PIXEL_FORMAT | format | ||
) |
Simple 2D view constructor.
dataView | The view over the data which should be part of the image. |
width | The width of the image, in pixels. |
height | The height of the image, in pixels. |
format | The format of the image. |
nkImages::ImageView::ImageView | ( | const nkMemory::BufferView< unsigned char > | dataView, |
unsigned int | width, | ||
unsigned int | height, | ||
unsigned int | depth, | ||
PIXEL_FORMAT | format, | ||
unsigned int | pixelByteSize, | ||
unsigned int | rowByteSize | ||
) |
Aligned 2D image constructor.
dataView | The view over the data which should be part of the image. |
width | The width of the image, in pixels. |
height | The height of the image, in pixels. |
depth | The depth of the image, in number of slices of width * height images. |
format | The format of the image. |
pixelByteSize | The size of a pixel, in bytes. |
rowByteSize | The size of a row, in bytes. |
nkImages::ImageView::ImageView | ( | const ImageView & | other | ) |
Copy constructor. Note that no memory will be copied, only a new view over it will be created.
other | The view to copy over. |
nkImages::ImageView::ImageView | ( | ImageView && | other | ) |
Move constructor.
other | The view to move. |
nkImages::ImageView::~ImageView | ( | ) |
Destructor.
|
overridevirtual |
Implements nkImages::ImageBase.
Copy assignment operator.
other | The view to copy and assign. |
Move assignment operator.
other | The view to move and assign. |